@extends('app')

@section('content')

<ul class="nav nav-tabs">
    <li class="active"><a href="#">充值记录</a></li>
</ul>

<div class="panel panel-default mt20">

    <div class="table-responsive panel-body">
        <table class="table table-hover">
            <thead>
            <tr>
                <th>编号</th>
                <th>用户名称</th>
                <th>充值金额</th>
                <th>购买产品</th>
                <th>产生积分</th>
                <th>创建时间</th>
            </tr>
            </thead>
            <tbody>
            @foreach($result as $res)
            <tr id="news_{{ $res->id }}">
                <td>{{ $res->id }}</td>
                <td>{{ $res->userinfo->name }} </a></td>
                <td>{{ $res->money }}</td>
                <td>{{ $res->products}}</td>
                <td>{{ $res->gold }}</td>
                <td>{{ $res->created_at }}</td>
            </tr>
            @endforeach
            </tbody>
        </table>
    </div>
</div>
<div>{!! $result->render() !!} </div>
@endsection
